package com.relytosoft.mizar.media.analyze.api.entity.system;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.time.LocalDateTime;


/**
 * @author lj
 * @date 2022/5/12 10:13
 */
@TableName("AY_VEHICLE_GROUP")
@ApiModel("AyVehicleGroup")
public class AyVehicleGroup{

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "ID", type = IdType.AUTO)
    @ApiModelProperty(value = "主键", required = true)
    private Integer id;

    /**
     * 车辆ID
     */
    @ApiModelProperty(value = "车辆ID", required = true)
    @TableField("VEHICLE_ID")
    private Integer vehicleId;

    /**
     * 库ID
     */
    @ApiModelProperty(value = "库ID", required = true)
    @TableField("GROUP_ID")
    private Integer groupId;

    @ApiModelProperty("创建人ID")
    @TableField(value = "created_id", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NEVER)
    protected int createdId;


    @ApiModelProperty("创建人")
    @TableField(value = "created_by", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NEVER)
    protected String createdBy;


    @ApiModelProperty("创建时间")
    @TableField(value = "created_time", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NEVER)
    protected LocalDateTime createdTime;


    public int getCreatedId() {
        return createdId;
    }

    public void setCreatedId(int createdId) {
        this.createdId = createdId;
    }

    public String getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    public LocalDateTime getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(LocalDateTime createdTime) {
        this.createdTime = createdTime;
    }

    /**
     * 获得主键
     */
    public Integer getId() {
        return this.id;
    }

    /**
     * 设置主键
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获得车辆ID
     */
    public Integer getVehicleId() {
        return this.vehicleId;
    }

    /**
     * 设置车辆ID
     */
    public void setVehicleId(Integer vehicleId) {
        this.vehicleId = vehicleId;
    }

    /**
     * 获得库ID
     */
    public Integer getGroupId() {
        return this.groupId;
    }

    /**
     * 设置库ID
     */
    public void setGroupId(Integer groupId) {
        this.groupId = groupId;
    }

    @Override
    public String toString() {
        return "AyVehicleGroup{id=" + id +
                ",vehicleId=" + vehicleId +
                ",groupId=" + groupId +
                ",createdId=" + createdId +
                ",createdBy=" + createdBy +
                ",createdTime=" + createdTime +
                "}";
    }
}